package com.qiku.dao;


import com.qiku.domain.PromotionAd;

import java.util.List;

public interface PromotionAdMapper {

    /**
     * 分页获取广告列表数据
     * @return
     */
    public List<PromotionAd> findAllAdByPage();

    /**
     *  新建广告接口
     * @return
     */
    public int savePromotionAd(PromotionAd promotionAd);
    /**
     *  修改广告接口
     * @return
     */
    public int updatePromotionAd(PromotionAd promotionAd);

    /**
     * 接收广告ID,返回广告详细信息
     * @param id
     * @return
     */
    public PromotionAd findPromotionAdById(Integer id);

    /**
     * 修改广告上下线状态
     * @param promotionAd
     * @return
     */
    public int updatePromotionAdStatus(PromotionAd promotionAd);

}
